import request from '@/utils/request'

// 查询邮箱发送列表
export function listMsg(query) {
  return request({
    url: '/monitor/Msg/list',
    method: 'get',
    params: query
  })
}

// 查询邮箱发送详细
export function getMsg(id) {
  return request({
    url: '/monitor/Msg/' + id,
    method: 'get'
  })
}

// 新增邮箱发送
export function addMsg(data) {
  return request({
    url: '/monitor/Msg',
    method: 'post',
    data: data
  })
}

// 修改邮箱发送
export function updateMsg(data) {
  return request({
    url: '/monitor/Msg',
    method: 'put',
    data: data
  })
}

// 删除邮箱发送
export function delMsg(id) {
  return request({
    url: '/monitor/Msg/' + id,
    method: 'delete'
  })
}
